import request from '@/utils/request'

// 创建报价单
export function createSeekQuotation(data) {
  return request({
    url: '/car/seek-quotation/create',
    method: 'post',
    data: data
  })
}

// 更新报价单
export function updateSeekQuotation(data) {
  return request({
    url: '/car/seek-quotation/update',
    method: 'put',
    data: data
  })
}

// 删除报价单
export function deleteSeekQuotation(id) {
  return request({
    url: '/car/seek-quotation/delete?id=' + id,
    method: 'delete'
  })
}

// 获得报价单
export function getSeekQuotation(id) {
  return request({
    url: '/car/seek-quotation/get?id=' + id,
    method: 'get'
  })
}

// 获得报价单分页
export function getSeekQuotationPage(query) {
  return request({
    url: '/car/seek-quotation/page',
    method: 'get',
    params: query
  })
}

// 导出报价单 Excel
export function exportSeekQuotationExcel(query) {
  return request({
    url: '/car/seek-quotation/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
